

class Solution(object):
    def arraySign(self, nums):
        """
        :type nums: List[int]
        :rtype: int
        """
        sign = 1
        for i in nums:
            if i == 0:
                print(0)
                break
            if i < 0:
                sign = -sign
            print(sign)


if __name__ == '__main__':
    sol = Solution()
    sol.arraySign(nums=[-1, -2, -3, -4, 3, 2, 1])
